<?php

	class ComponentWidget extends EbWidget
	{
		public function render()
		{
			$module = $this->module;
			$file = $this->file;
			
			if (is_array($this->data))
			{
				extract($this->data,EXTR_OVERWRITE);
			}
			else if (is_object($this->data))
			{
				extract(get_object_vars($this->data),EXTR_OVERWRITE);
			}			
			
			include(MODULES_PATH.'/'.$module.'/v/'.$file.'Component.php');
		}	
	}

?>